<?php
// 文件名 api/controller/Page.php
namespace app\api\controller;

use app\common\controller\Api;


/**
 * 单页接口
 */
class Page extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    // 单页详情
    public function detail(){
        if(!input('?param.id')){
            $this->error('参数不正确！');   
        }
        $data = model('Page')
            ->where('id',input('id'))
            ->find();

        $this->success('查询成功！', $data);    
    }
}
